<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		body{
			background-image: url(app/Install/View/Install/images/bgimg.jpg);
		}
	</style>
	{{bootstrap}}
	{{jquery}}
</head>
<body>
	<h2>环境检测</h2>
	<table class="table">
		{{foreach from="$fun['fun']" key="$k" value="$v"}}
		 <tr>
			<td>{{$k}}</td>
			<td class="{{$v?'':'error'}}">{{$v?'OK':'X'}}</td>
		</tr>
		{{endforeach}}
	</table>
	<h2>目录检测</h2>
	<table class="table">
		{{foreach from="$fun['dir']" key="$k" value="$v"}}
		<tr>
			<td>{{$k}}</td>
			<td>{{$v}}</td>
		</tr>
		{{endforeach}}
	</table>
	<a href="{{U('setup')}}" class="btn btn-default">上一步</a>
	<button class="btn btn-primary" onclick="next()">下一步</button>
	<script type="text/javascript">
		function next(){
			if($(".error").length>0)
			{
				alert('安装环境不满足');
				return false;
			}
			location.href="{{U('database')}}";
		}
	</script>
</body>
</html>